package com.cheng.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheng.admin.model.Invite;
import com.cheng.admin.model.Order;
import com.cheng.common.domain.BaseSearchVO;
import com.github.pagehelper.PageInfo;

import java.math.BigDecimal;

/**
 * <p>
 * 用户钱包（总金额在用户表） 服务类
 * </p>
 *
 * @author 起凡
 * @since 2022-01-17
 */
public interface InviteService extends IService<Invite> {
    boolean withdrawal(BigDecimal money);

    boolean join(Long invitorId) throws Exception;

    boolean check(Long id);

    boolean refuse(Long id, String reason);

    boolean extract(Order finalPrice);
    PageInfo<Invite> list(BaseSearchVO searchVO);
    PageInfo<Invite> listForBack(BaseSearchVO searchVO);
}
